package org.jeecg.modules.purchase.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 提供的物品
 * @Author: jeecg-boot
 * @Date:   2022-11-15
 * @Version: V1.0
 */
@ApiModel(value="purchase_provider_goods对象", description="提供的物品")
@Data
@TableName("purchase_provider_goods")
public class PurchaseProviderGoods implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**物品id*/
//	@Excel(name = "物品id", width = 15)
//    @ApiModelProperty(value = "物品id")
//    private String goodsId;
	/**物品编码*/
//	@Excel(name = "物品编码", width = 15)
    @ApiModelProperty(value = "物品编码")
    private String goodsCode;
	/**物品分类*/
	@Excel(name = "物品分类", width = 15, dicCode = "purchase_goods_type")
	@Dict(dicCode = "purchase_goods_type")
    @ApiModelProperty(value = "物品分类")
    private String goodsType;
	/**物品名称*/
	@Excel(name = "物品名称", width = 15)
    @ApiModelProperty(value = "物品名称")
    private String goodsName;
	/**单位*/
	@Excel(name = "单位", width = 15, dicCode = "purchase_unit")
	@Dict(dicCode = "purchase_unit")
    @ApiModelProperty(value = "单位")
    private String unit;
	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private String unitPrice;
	/**供应商id*/
    @ApiModelProperty(value = "供应商id")
    private String providerId;
    /**供应商编码*/
//    @Excel(name = "供应商编码", width = 15)
    @ApiModelProperty(value = "供应商编码")
    private String providerCode;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @TableField(fill=FieldFill.INSERT)
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill=FieldFill.INSERT)
    private Date createTime;
	/**最后修改人*/
    @ApiModelProperty(value = "最后修改人")
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private String updateBy;
	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;
	/**逻辑删除 0表示未删除，1表示删除*/
    @TableLogic
//	@Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除 0表示未删除，1表示删除")
    private Integer delFlag;
	/**当前登录用户部门编号*/
    @ApiModelProperty(value = "当前登录用户部门编号")
    private String sysOrgCode;
	/**租户id*/
//	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
}
